--- pciutils-3.2.1.org/lib/names-net.c
+++ pciutils-3.2.1/lib/names-net.c
@@ -8,6 +8,7 @@
 
 #include <string.h>
 #include <stdlib.h>
+#include <stdio.h> /* for sprintf() */
 
 #include "internal.h"
 #include "names.h"
